package com.guli.sms.feign;

import com.guli.common.to.SpuAndSkuListTo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/*
 * @Author 罗俊
 * @date 2020/12/1 - 9:30 上午
 *
 */
@FeignClient(name = "product-service")
public interface ProductFeignClient {


    @PostMapping("/pms/spuinfo/getSpuAndSkuBySpuId")
    @ApiOperation("根据spuIdList获取封装好了的spu以及它的sku")
    public Map<Long, SpuAndSkuListTo> getSpuAndSkuBySpuId(@RequestBody List<Long> spuIds);

}
